package com.company.cloud.club.modules.core.dto.project;

import com.company.cloud.club.modules.core.util.ValidateUtil;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
@EqualsAndHashCode
public class SurveyDto implements Serializable {

    private List<OptionDto> mechanismList = new ArrayList<>();                  // 机构类型

    private List<OptionDto> industryList = new ArrayList<>();                   // 所属行业

    private List<OptionDto> budgetList = new ArrayList<>();                     // 预算范围

    public void addMechanismList(String name) {
        if (ValidateUtil.isValid(name)) {
            this.mechanismList.add(new OptionDto(name));
        }
    }

    public void addIndustryList(String name) {
        if (ValidateUtil.isValid(name)) {
            this.industryList.add(new OptionDto(name));
        }
    }

    public void addBudgetList(String name) {
        if (ValidateUtil.isValid(name)) {
            this.budgetList.add(new OptionDto(name));
        }
    }



}
